package com.hmall.feign.client;

import com.hmall.feign.config.DefaultFeignConfiguration;
import com.hmall.feign.dto.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "userservice",configuration = DefaultFeignConfiguration.class)
public interface UserClient {
    @GetMapping("/address/{addressId}")
    Address getAddr(@PathVariable("addressId")Long addrId);
}
